package com.imu.wys.m2spel;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Director {
    MoAttak moAttack;

    public void setMoAttack(MoAttak moAttack) {
        this.moAttack = moAttack;
    }

    public void directMoive() {
        moAttack.cityGateAsk();
    }

    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext2.xml");
        Director director = (Director) applicationContext.getBean("director");
        director.directMoive();
    }

}
